//
//  PGBarItem.h
//  EpointFrame5
//
//  Created by Pill Gong on 14-4-17.
//  Copyright (c) 2014年 Epoint. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIView+Addtions.h"

#define PGBarItemWidth 65.0f

@class PGBarItem;

@protocol PGBarItemDelegate <NSObject>

- (void)didSelectedAtPGBarItem:(PGBarItem *)item;

@end

@interface PGBarItem : UIView

@property (nonatomic, assign) id<PGBarItemDelegate> delegate;

@property (nonatomic, readonly) NSString *title;
@property (nonatomic, readonly) UIImage *image;
@property (nonatomic, readonly) UIImage *highlightImage;
@property (nonatomic, assign) BOOL isSelected;
@property (nonatomic, copy) NSString *badgeValue;

- (id)initWithTitle:(NSString *)title image:(UIImage *)image highlightImage:(UIImage *)highlightImage tag:(NSInteger)tag;
- (id)initWithTitle:(NSString *)title image:(UIImage *)image tag:(NSInteger)tag;
- (void)setItemTitle:(NSString *)title;

@end
